package com.zeroone.star.systemhome.mapper.meeting;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zeroone.star.project.dto.systemhome.MeetingDTO;
import com.zeroone.star.project.vo.JsonVO;
import com.zeroone.star.project.vo.systemhome.MeetingStatisticsVO;
import com.zeroone.star.systemhome.entity.MtMeeting;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @BelongsProject: oa-java
 * @BelongsPackage: com.zeroone.star.systemhome.mapper.meeting
 * @Author: dashuai
 * @CreateTime: 2024-11-18  21:50
 * @Description: 会议mapper接口
 * @Version: 1.0
 */
@Mapper
public interface MeetingMapper extends BaseMapper<MtMeeting> {
    /**
     * 查询会议信息(我发起的)
     * @param time 时间
     * @param id 用户id
     * @return 会议信息
     */
    List<MeetingDTO> selectMeetingInfo(LocalDateTime time, String id);
    /**
     * 查询会议信息(邀请我的)
     * @param time 时间
     * @param id 用户id
     * @return 会议信息
     */
    List<MeetingDTO> selectInviteMeetingInfo(LocalDateTime time, String id);

    List<MeetingStatisticsVO> countMeetingInfo(String id);
}
